home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
vector.hlp
< prev
next >
Wrap
Text File
|
1994-05-30
|
1KB
|
55 lines
@COLOR 1 15
Language SLANG
Operators:
FOR <cycle variable> TO <upper limit>
............
NEXT
Step is 1. Nested cycles are legal.
GOTO <label>
Pass control to the line
!<label name>
Example:
GOTO l
......
!l
......
IF <condition> THEN <action>
If succes, pass control to "action", else
to the nest line
Example:
IF a > 3 THEN GOTO label1
GOTO label2
Subroutines.
Begin with alpha. Terminated with RETURN.
Main program terminated with END. Could get
list of arguments and return a value.
Example:
MIN(x, y)
IF x < y THEN y = x
x = y
RETURN x
PLAY("<file name>") pass control to the external
file. Return control back after END statement.
OOPic operators.
LINE(x1, y1, x2, y2) draws a line.
LINETO(x2, y2) draws a line from current position
to the given point.
ELLIPSE(x1, y1, startangle, endangle, xradius, yradius)
draws an ellipse or sector.
RECTANGLE(x1, y1, x2, y2) draws rectangle.
POLY(i, x1, y1... xi, yi) draws polygon.
MOVETO(x, y) moves current position to the point.
ZOOM(scalex,scaley) zoom all the following output.
ROTATE(alpha, x, y) rotate all output exept ellipses.